$OpenBSD: patch-kontact_src_CMakeLists_txt,v 1.1 2014/07/09 20:03:30 zhuk Exp $
Fix linking.
--- kontact/src/CMakeLists.txt.orig	Tue Jul  1 12:57:20 2014
+++ kontact/src/CMakeLists.txt	Tue Jul  1 12:58:07 2014
@@ -22,14 +22,14 @@ kde4_add_kcfg_files(kontactprivate_LIB_SRCS prefs.kcfg
 kde4_add_library(kontactprivate ${LIBRARY_TYPE} ${kontactprivate_LIB_SRCS})
 
 target_link_libraries(kontactprivate
+  kdepimdbusinterfaces
+  kdepim
+  ${KDEPIMLIBS_KONTACTINTERFACE_LIBS}
+  ${KDEPIMLIBS_KPIMUTILS_LIBS}
   ${KDE4_KCMUTILS_LIBS}
   ${KDE4_KDEWEBKIT_LIBRARY}
   ${KDE4_KPARTS_LIBS}
-  ${KDEPIMLIBS_KONTACTINTERFACE_LIBS}
-  ${KDEPIMLIBS_KPIMUTILS_LIBS}
   ${QT_QTWEBKIT_LIBRARY}
-  kdepim
-  kdepimdbusinterfaces
 )
 
 set_target_properties(kontactprivate PROPERTIES
@@ -50,12 +50,12 @@ kde4_add_executable(kontact_bin ${kontact_bin_SRCS})
 set_target_properties(kontact_bin PROPERTIES OUTPUT_NAME kontact)
 
 target_link_libraries(kontact_bin
+  kontactprivate
+  kdepimdbusinterfaces
+  ${KDEPIMLIBS_KONTACTINTERFACE_LIBS}
   ${KDE4_KDEWEBKIT_LIBRARY}
   ${KDE4_KPARTS_LIBRARY}
-  ${KDEPIMLIBS_KONTACTINTERFACE_LIBS}
   ${QT_QTWEBKIT_LIBRARY}
-  kdepimdbusinterfaces
-  kontactprivate
 )
 
 install(TARGETS kontact_bin ${INSTALL_TARGETS_DEFAULT_ARGS})
@@ -67,11 +67,11 @@ set(kcm_kontact_PART_SRCS kcmkontact.cpp)
 kde4_add_plugin(kcm_kontact ${kcm_kontact_PART_SRCS})
 
 target_link_libraries(kcm_kontact
+  kontactprivate
+  kdepim
   ${KDE4_KCMUTILS_LIBS}
   ${KDE4_KDEUI_LIBS}
   ${QT_QTGUI_LIBRARY}
-  kdepim
-  kontactprivate
 )
 
 install(TARGETS kcm_kontact DESTINATION ${PLUGIN_INSTALL_DIR})
